package day0520;

import java.util.Arrays;
import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        double[]  ss={0,0};

        double score=new Scanner(System.in).nextDouble();//1.
        while(0>score || score>100){//2.
            score=new Scanner(System.in).nextDouble();//3.
        }
        System.out.println("您输入了有效成绩，"+score+"即将存入到系统中");
        ss[0]=score;
        System.out.println(Arrays.toString(ss));


        score=new Scanner(System.in).nextDouble();//1.
        while(0>score || score>100){//2.
            score=new Scanner(System.in).nextDouble();//3.
        }
        System.out.println("您输入了有效成绩，"+score+"即将存入到系统中");
        ss[1]=score;
        System.out.println(Arrays.toString(ss));

    }
}
